#!/usr/bin/python3
# -*- coding: utf-8 -*-
#======================================#
# @Author   : duanqizhong
# @time     : 2022-8-6 23:12
# @file     : settings
# @Software : PyCharm
#======================================#
import os
import sys

BASE_DIR=sys.path.append(os.path.dirname(os.path.abspath(__file__)))

CONNECT_TIMEOUT=10

# Exchange邮件
EX_SERVER = "mail.dangdang.com"
# EX_PORT=443
EX_FROM = "duanqizhong@dangdang.com"
EX_PASSWORD = "Yu123456"
MAIL_SUFFIX = "@dangdang.com"

# FTP
FTP_SERVER = "10.255.209.109"
FTP_PORT = 21
FTP_TIMEOUT = 60
FTP_ENCODING = 'gbk'
FTP_BUFFER_SIZE = 1024


HEADERS = {
    "text": {"Content-Type": "text/plain; charset=UTF-8"},
    "javaScripts": {"Content-Type": "application/javascript; charset=UTF-8"},
    "json": {"Content-Type": "application/json; charset=UTF-8"},
    "html": {"Content-Type": "text/html; charset=UTF-8"},
    "xml": {"Content-Type": "application/xml; charset=UTF-8"},
    "form": {"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8"},
    "muti-form": {"Content-Type": "mutipart/form-data"},
}